package com.ruoyi.modules.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.modules.mapper.CertificateDemoMapper;
import com.ruoyi.modules.domain.CertificateDemo;
import com.ruoyi.modules.service.ICertificateDemoService;

/**
 * 电子签章Service业务层处理
 * 
 * @author ssh
 * @date 2024-12-15
 */
@Service
public class CertificateDemoServiceImpl implements ICertificateDemoService 
{
    @Autowired
    private CertificateDemoMapper certificateDemoMapper;

    /**
     * 查询电子签章
     * 
     * @param ID 电子签章主键
     * @return 电子签章
     */
    @Override
    public CertificateDemo selectCertificateDemoByID(String ID)
    {
        return certificateDemoMapper.selectCertificateDemoByID(ID);
    }

    /**
     * 查询电子签章列表
     * 
     * @param certificateDemo 电子签章
     * @return 电子签章
     */
    @Override
    public List<CertificateDemo> selectCertificateDemoList(CertificateDemo certificateDemo)
    {
        return certificateDemoMapper.selectCertificateDemoList(certificateDemo);
    }

    /**
     * 新增电子签章
     * 
     * @param certificateDemo 电子签章
     * @return 结果
     */
    @Override
    public int insertCertificateDemo(CertificateDemo certificateDemo)
    {
        return certificateDemoMapper.insertCertificateDemo(certificateDemo);
    }

    /**
     * 修改电子签章
     * 
     * @param certificateDemo 电子签章
     * @return 结果
     */
    @Override
    public int updateCertificateDemo(CertificateDemo certificateDemo)
    {
        return certificateDemoMapper.updateCertificateDemo(certificateDemo);
    }

    /**
     * 批量删除电子签章
     * 
     * @param IDs 需要删除的电子签章主键
     * @return 结果
     */
    @Override
    public int deleteCertificateDemoByIDs(String[] IDs)
    {
        return certificateDemoMapper.deleteCertificateDemoByIDs(IDs);
    }

    /**
     * 删除电子签章信息
     * 
     * @param ID 电子签章主键
     * @return 结果
     */
    @Override
    public int deleteCertificateDemoByID(String ID)
    {
        return certificateDemoMapper.deleteCertificateDemoByID(ID);
    }
}
